#ifndef USERDETAILS_H
#define USERDETAILS_H

#include <QDialog>
#include <QString>

class QObject;
class QWidget;
class QLabel;
class QPushButton;
class QFrame;
class DBRecord;

class UserDetails: public QDialog
{
Q_OBJECT
public:
	UserDetails( const DBRecord * rec,
#if defined( Q_WS_MAEMO_5 ) || defined( Q_WS_HILDON )
				Qt::WidgetAttribute screenOrientation,
#endif
				QWidget * parent = 0 );
	~UserDetails();

signals:
	int callUser(const QString &name, const QString &number);
	int smsUser(const QString &name, const QString &number);

public slots:
	void callUserClicked();
	void smsUserClicked();

private:
	QLabel *label;
	QLabel *pix;
	QPushButton *callButton;
	QPushButton *smsButton;
	QPushButton *closeButton;
	QFrame *thumb;

	const DBRecord * m_dbRecord;
};

#endif // USERDETAILS_H
